package com.zhuangjie.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuangjie.order.entity.OrderDetail;
import com.zhuangjie.order.pojo.DishSalesCount;
import com.zhuangjie.order.vo.OrderDetailForEvaluate;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 订单明细表 Mapper 接口
 * </p>
 *
 * @author zhuangjie
 * @since 2023-11-24
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    List<OrderDetailForEvaluate>  getOrderDetailForEvaluateListByOrderId(@Param("orderId") Long orderId);

    List<DishSalesCount> getShopDishSalesCount(@Param("shopId") Long shopId, @Param("beginDateTime") LocalDateTime beginDateTime, @Param("completedEndPoints") int[] completedEndPoints);
}
